package Demo;

public class Demo3 {
    public static void main(String[] args) {
        Thread t = new Thread(() -> {
            System.out.println(Thread.currentThread().getName());
        },"myThread");
        t.start();
        System.out.println(Thread.currentThread().getName());
    }
}
